package com.li.o2oSystem.service;

import com.li.o2oSystem.dto.ImageHolder;
import com.li.o2oSystem.dto.ShopExecution;
import com.li.o2oSystem.entity.Shop;
import com.li.o2oSystem.exceptions.ShopOperationException;

public interface ShopService {
	/**
	 * 添加商品,包括对图片的处理
	 * @param shop
	 * @param thumbnail
	 * @return
	 * @throws ShopOperationException
	 */
	ShopExecution addShop(Shop shop,ImageHolder thumbnail) throws ShopOperationException;
	/**
	 * 根据商品id查询商品
	 * @param shopId
	 * @return
	 */
	Shop getByShopId(long shopId);
	/**
	 * 修改商品，包括图片处理
	 * @param shop
	 * @param thumbnail
	 * @return
	 * @throws ShopOperationException
	 */
	ShopExecution modifyShop(Shop shop,ImageHolder thumbnail) throws ShopOperationException;
	/**
	 *根据shopCondition,分页返回相应列表数据
	 * @param shopCondition
	 * @param pageIndex
	 * @param pageSize
	 * @return
	 */
	ShopExecution getShopList(Shop shopCondition,int pageIndex,int pageSize);
}
